package com.financing.platform.service;

import java.sql.SQLException;
import java.util.List;

import com.financing.platform.dto.ProjectSupplierDTO;
import com.financing.platform.dto.ProjectSupplierFlowDTO;

public interface IProjectSupplierService extends IBaseService {
	

	/**
	 * 获取产品供应商列表
	 * @param projectSupplierDTO
	 * @return
	 */
	public List<ProjectSupplierDTO> getProjectSupplierList(ProjectSupplierDTO projectSupplierDTO) throws SQLException;
	/**
	 * 获取产品供应商列表-flow
	 * @param projectSupplierDTO
	 * @return
	 */
	public List<ProjectSupplierFlowDTO> getProjectSupplierFlowList(ProjectSupplierFlowDTO projectSupplierFlowDTO) throws SQLException;
	/**
	 * 根据ID获取产品供应商详情
	 * @param id
	 * @return
	 */
	public ProjectSupplierDTO getProjectSupplierById(ProjectSupplierDTO projectSupplierDTO) throws SQLException;
	
	/**
	 * 更新产品供应商
	 * @param dto
	 * @return id
	 * @throws SQLException 
	 */
	public int updateProjectSupplier(ProjectSupplierDTO projectSupplierDTO) throws SQLException;
	
	/**
	 * @throws SQLException 
	 * 
	* @Title: addProjectSupplier 
	* @Description: 添加供应商
	* @param   projectSupplierDTO
	* @return int   
	* @throws
	 */
	public int addProjectSupplier(ProjectSupplierDTO projectSupplierDTO) throws SQLException;
	
	
	/**
	 * 查询列表总数
	 * @param projectCompanyDTO
	 * @return int
	 * @throws SQLException
	 */
	public int queryProjectSupplierCount(ProjectSupplierDTO projectSupplierDTO) throws SQLException;
	/**
	 * 查询flow列表总数-
	 * @param projectCompanyDTO
	 * @return int
	 * @throws SQLException
	 */
	public int queryProjectSupplierFlowCount(ProjectSupplierFlowDTO projectSupplierFlowDTO) throws SQLException;

	/**
	 * 删除公司
	 * @param projectSupplierId
	 * @return
	 */
	public int delProjectSupplier(int projectSupplierId) throws SQLException;
}
